home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 375 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.8 KB  |  92 lines

  1. Path: news.onramp.net!usenet
  2. From: magras@suite.com (JC Magras)
  3. Newsgroups: comp.unix.solaris,comp.software.config-mgmt,comp.lang.c
  4. Subject: CVS 1.6 again
  5. Date: 4 Jan 1996 21:48:52 GMT
  6. Organization: On-Ramp; Individual Internet Connections; Dallas/Ft Worth/Houston, TX USA
  7. Distribution: inet
  8. Message-ID: <4chi04$5tl@news.onramp.net>
  9. NNTP-Posting-Host: s175-18.suite.com
  10. X-Newsreader: Alexandra.app (Version 0.81)
  11.  
  12. Hi folks,
  13.  
  14. Went out and did some digging. I was running CVS 1.6 on a Sparc 5/Solaris2.4
  15. box. I was trying to retrieve a directory with 488 files in it. After the 
  16. first file ( maybe second) had been retrieved, it cored due to a bus error.
  17.  
  18. The source file that caused the error was cvs-1.6/lib/getdate.c . 
  19.  
  20. gdb reported ...
  21. 0  0xef66c598 in _time ()
  22. (gdb) where
  23. #0  0xef66c598 in _time ()
  24. #1  0x87f38 in get_date ()
  25. #2  0x480e4 in RCS_getrevtime ()
  26. #3  0x58af8 in Version_TS ()
  27. #4  0x546bc in checkout_file ()
  28. #5  0x531a0 in update_file_proc ()
  29. #6  0x49d30 in do_file_proc ()
  30. #7  0x2c0c4 in walklist ()
  31. #8  0x49ab0 in do_recursion ()
  32. #9  0x4a15c in do_dir_proc ()
  33. #10 0x2c0c4 in walklist ()
  34. #11 0x49c20 in do_recursion ()
  35. #12 0x48f5c in start_recursion ()
  36. #13 0x52a24 in do_update ()
  37. #14 0x1e6b4 in checkout_proc ()
  38. #15 0x3d3ac in do_module ()
  39. #16 0x1d7a0 in checkout ()
  40. #17 0x3b588 in main ()
  41.  
  42. from cvs-1.6/lib/getdate.c
  43. use old timeb structure ...
  44. struct timeb {
  45.     time_t              time;           /* Seconds since the epoch      */
  46.     unsigned short      millitm;        /* Field not used               */
  47.     short               timezone;       /* Minutes west of GMT          */
  48.     short               dstflag;        /* Field not used               */
  49. };
  50.  
  51.  
  52. get_date(p, now)
  53.     char                *p;
  54.     struct timeb        *now;
  55. {
  56.     struct tm           *tm, gmt;
  57.     struct timeb        ftz;
  58.     time_t              Start;
  59.     time_t              tod;
  60.  
  61.     yyInput = p;
  62.     if (now == NULL) {
  63.         now = &ftz;
  64.         (void)time(&(ftz.time));
  65.  
  66. This thing is choking initializing a variable. When I try to compile cvs-1.6
  67. with gcc, it complains error.c cannot be compiled because __builtin_va_alist
  68. isnt defined.
  69.  
  70. The directory is aliased to the module das
  71. $ ls das
  72. CVS         DasAPRep.h  DasAPRep.m  core
  73. $ ls das/CVS
  74. ,,DasAPRep.h  Entries       Entries.Log   Repository    Root
  75. $ ls -l das/CVS
  76. total 10
  77. -rw-r-----   1 magras   develop      823 Jan  3 18:18 ,,DasAPRep.h
  78. -rw-r--r--   1 magras   develop       47 Jan  4 15:18 Entries
  79. -rw-r--r--   1 magras   develop       47 Jan  4 15:18 Entries.Log
  80. -rw-r--r--   1 magras   develop       52 Jan  3 18:18 Repository
  81. -rw-r--r--   1 magras   develop       35 Jan  3 18:18 Root
  82. $ ls -l das/CVS/Entries
  83. -rw-r--r--   1 magras   develop       47 Jan  4 15:18 das/CVS/Entries
  84. $ cat das/CVS/Entries  
  85. /DasAPRep.h/1.1.1.1/Thu Jan  4 00:18:22 1996//
  86. $ cat das/CVS/Entries.Log
  87. /DasAPRep.h/1.1.1.1/Thu Jan  4 20:10:54 1996//
  88.  
  89.  
  90.  
  91.